#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .adminInfoResource import admininfo_blueprint
from .repairImgInfoResource import repairimginfo_blueprint
from .repairInfoResource import repairinfo_blueprint
from .userInfoResource import userinfo_blueprint
from .workerInfoResource import workerinfo_blueprint


def init_router(app):
    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # adminInfo blueprint register
    from api_1_0.adminInfoResource import admininfo_blueprint
    app.register_blueprint(admininfo_blueprint, url_prefix="/api_1_0")
    
    # repairImgInfo blueprint register
    from api_1_0.repairImgInfoResource import repairimginfo_blueprint
    app.register_blueprint(repairimginfo_blueprint, url_prefix="/api_1_0")
    
    # repairInfo blueprint register
    from api_1_0.repairInfoResource import repairinfo_blueprint
    app.register_blueprint(repairinfo_blueprint, url_prefix="/api_1_0")
    
    # userInfo blueprint register
    from api_1_0.userInfoResource import userinfo_blueprint
    app.register_blueprint(userinfo_blueprint, url_prefix="/api_1_0")
    
    # workerInfo blueprint register
    from api_1_0.workerInfoResource import workerinfo_blueprint
    app.register_blueprint(workerinfo_blueprint, url_prefix="/api_1_0")
    
